package com.xhs.main.entity.yfb;

import java.util.ArrayList;
import java.util.List;

public class YfbBookExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public YfbBookExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andYfbBookIdIsNull() {
            addCriterion("yfb_book_id is null");
            return (Criteria) this;
        }

        public Criteria andYfbBookIdIsNotNull() {
            addCriterion("yfb_book_id is not null");
            return (Criteria) this;
        }

        public Criteria andYfbBookIdEqualTo(Integer value) {
            addCriterion("yfb_book_id =", value, "yfbBookId");
            return (Criteria) this;
        }

        public Criteria andYfbBookIdNotEqualTo(Integer value) {
            addCriterion("yfb_book_id <>", value, "yfbBookId");
            return (Criteria) this;
        }

        public Criteria andYfbBookIdGreaterThan(Integer value) {
            addCriterion("yfb_book_id >", value, "yfbBookId");
            return (Criteria) this;
        }

        public Criteria andYfbBookIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("yfb_book_id >=", value, "yfbBookId");
            return (Criteria) this;
        }

        public Criteria andYfbBookIdLessThan(Integer value) {
            addCriterion("yfb_book_id <", value, "yfbBookId");
            return (Criteria) this;
        }

        public Criteria andYfbBookIdLessThanOrEqualTo(Integer value) {
            addCriterion("yfb_book_id <=", value, "yfbBookId");
            return (Criteria) this;
        }

        public Criteria andYfbBookIdIn(List<Integer> values) {
            addCriterion("yfb_book_id in", values, "yfbBookId");
            return (Criteria) this;
        }

        public Criteria andYfbBookIdNotIn(List<Integer> values) {
            addCriterion("yfb_book_id not in", values, "yfbBookId");
            return (Criteria) this;
        }

        public Criteria andYfbBookIdBetween(Integer value1, Integer value2) {
            addCriterion("yfb_book_id between", value1, value2, "yfbBookId");
            return (Criteria) this;
        }

        public Criteria andYfbBookIdNotBetween(Integer value1, Integer value2) {
            addCriterion("yfb_book_id not between", value1, value2, "yfbBookId");
            return (Criteria) this;
        }

        public Criteria andYfbBookItemIdIsNull() {
            addCriterion("yfb_book_item_id is null");
            return (Criteria) this;
        }

        public Criteria andYfbBookItemIdIsNotNull() {
            addCriterion("yfb_book_item_id is not null");
            return (Criteria) this;
        }

        public Criteria andYfbBookItemIdEqualTo(String value) {
            addCriterion("yfb_book_item_id =", value, "yfbBookItemId");
            return (Criteria) this;
        }

        public Criteria andYfbBookItemIdNotEqualTo(String value) {
            addCriterion("yfb_book_item_id <>", value, "yfbBookItemId");
            return (Criteria) this;
        }

        public Criteria andYfbBookItemIdGreaterThan(String value) {
            addCriterion("yfb_book_item_id >", value, "yfbBookItemId");
            return (Criteria) this;
        }

        public Criteria andYfbBookItemIdGreaterThanOrEqualTo(String value) {
            addCriterion("yfb_book_item_id >=", value, "yfbBookItemId");
            return (Criteria) this;
        }

        public Criteria andYfbBookItemIdLessThan(String value) {
            addCriterion("yfb_book_item_id <", value, "yfbBookItemId");
            return (Criteria) this;
        }

        public Criteria andYfbBookItemIdLessThanOrEqualTo(String value) {
            addCriterion("yfb_book_item_id <=", value, "yfbBookItemId");
            return (Criteria) this;
        }

        public Criteria andYfbBookItemIdLike(String value) {
            addCriterion("yfb_book_item_id like", value, "yfbBookItemId");
            return (Criteria) this;
        }

        public Criteria andYfbBookItemIdNotLike(String value) {
            addCriterion("yfb_book_item_id not like", value, "yfbBookItemId");
            return (Criteria) this;
        }

        public Criteria andYfbBookItemIdIn(List<String> values) {
            addCriterion("yfb_book_item_id in", values, "yfbBookItemId");
            return (Criteria) this;
        }

        public Criteria andYfbBookItemIdNotIn(List<String> values) {
            addCriterion("yfb_book_item_id not in", values, "yfbBookItemId");
            return (Criteria) this;
        }

        public Criteria andYfbBookItemIdBetween(String value1, String value2) {
            addCriterion("yfb_book_item_id between", value1, value2, "yfbBookItemId");
            return (Criteria) this;
        }

        public Criteria andYfbBookItemIdNotBetween(String value1, String value2) {
            addCriterion("yfb_book_item_id not between", value1, value2, "yfbBookItemId");
            return (Criteria) this;
        }

        public Criteria andYfbBookDevelopsortIsNull() {
            addCriterion("yfb_book_developsort is null");
            return (Criteria) this;
        }

        public Criteria andYfbBookDevelopsortIsNotNull() {
            addCriterion("yfb_book_developsort is not null");
            return (Criteria) this;
        }

        public Criteria andYfbBookDevelopsortEqualTo(String value) {
            addCriterion("yfb_book_developsort =", value, "yfbBookDevelopsort");
            return (Criteria) this;
        }

        public Criteria andYfbBookDevelopsortNotEqualTo(String value) {
            addCriterion("yfb_book_developsort <>", value, "yfbBookDevelopsort");
            return (Criteria) this;
        }

        public Criteria andYfbBookDevelopsortGreaterThan(String value) {
            addCriterion("yfb_book_developsort >", value, "yfbBookDevelopsort");
            return (Criteria) this;
        }

        public Criteria andYfbBookDevelopsortGreaterThanOrEqualTo(String value) {
            addCriterion("yfb_book_developsort >=", value, "yfbBookDevelopsort");
            return (Criteria) this;
        }

        public Criteria andYfbBookDevelopsortLessThan(String value) {
            addCriterion("yfb_book_developsort <", value, "yfbBookDevelopsort");
            return (Criteria) this;
        }

        public Criteria andYfbBookDevelopsortLessThanOrEqualTo(String value) {
            addCriterion("yfb_book_developsort <=", value, "yfbBookDevelopsort");
            return (Criteria) this;
        }

        public Criteria andYfbBookDevelopsortLike(String value) {
            addCriterion("yfb_book_developsort like", value, "yfbBookDevelopsort");
            return (Criteria) this;
        }

        public Criteria andYfbBookDevelopsortNotLike(String value) {
            addCriterion("yfb_book_developsort not like", value, "yfbBookDevelopsort");
            return (Criteria) this;
        }

        public Criteria andYfbBookDevelopsortIn(List<String> values) {
            addCriterion("yfb_book_developsort in", values, "yfbBookDevelopsort");
            return (Criteria) this;
        }

        public Criteria andYfbBookDevelopsortNotIn(List<String> values) {
            addCriterion("yfb_book_developsort not in", values, "yfbBookDevelopsort");
            return (Criteria) this;
        }

        public Criteria andYfbBookDevelopsortBetween(String value1, String value2) {
            addCriterion("yfb_book_developsort between", value1, value2, "yfbBookDevelopsort");
            return (Criteria) this;
        }

        public Criteria andYfbBookDevelopsortNotBetween(String value1, String value2) {
            addCriterion("yfb_book_developsort not between", value1, value2, "yfbBookDevelopsort");
            return (Criteria) this;
        }

        public Criteria andYfbBookBooksortIsNull() {
            addCriterion("yfb_book_booksort is null");
            return (Criteria) this;
        }

        public Criteria andYfbBookBooksortIsNotNull() {
            addCriterion("yfb_book_booksort is not null");
            return (Criteria) this;
        }

        public Criteria andYfbBookBooksortEqualTo(String value) {
            addCriterion("yfb_book_booksort =", value, "yfbBookBooksort");
            return (Criteria) this;
        }

        public Criteria andYfbBookBooksortNotEqualTo(String value) {
            addCriterion("yfb_book_booksort <>", value, "yfbBookBooksort");
            return (Criteria) this;
        }

        public Criteria andYfbBookBooksortGreaterThan(String value) {
            addCriterion("yfb_book_booksort >", value, "yfbBookBooksort");
            return (Criteria) this;
        }

        public Criteria andYfbBookBooksortGreaterThanOrEqualTo(String value) {
            addCriterion("yfb_book_booksort >=", value, "yfbBookBooksort");
            return (Criteria) this;
        }

        public Criteria andYfbBookBooksortLessThan(String value) {
            addCriterion("yfb_book_booksort <", value, "yfbBookBooksort");
            return (Criteria) this;
        }

        public Criteria andYfbBookBooksortLessThanOrEqualTo(String value) {
            addCriterion("yfb_book_booksort <=", value, "yfbBookBooksort");
            return (Criteria) this;
        }

        public Criteria andYfbBookBooksortLike(String value) {
            addCriterion("yfb_book_booksort like", value, "yfbBookBooksort");
            return (Criteria) this;
        }

        public Criteria andYfbBookBooksortNotLike(String value) {
            addCriterion("yfb_book_booksort not like", value, "yfbBookBooksort");
            return (Criteria) this;
        }

        public Criteria andYfbBookBooksortIn(List<String> values) {
            addCriterion("yfb_book_booksort in", values, "yfbBookBooksort");
            return (Criteria) this;
        }

        public Criteria andYfbBookBooksortNotIn(List<String> values) {
            addCriterion("yfb_book_booksort not in", values, "yfbBookBooksort");
            return (Criteria) this;
        }

        public Criteria andYfbBookBooksortBetween(String value1, String value2) {
            addCriterion("yfb_book_booksort between", value1, value2, "yfbBookBooksort");
            return (Criteria) this;
        }

        public Criteria andYfbBookBooksortNotBetween(String value1, String value2) {
            addCriterion("yfb_book_booksort not between", value1, value2, "yfbBookBooksort");
            return (Criteria) this;
        }

        public Criteria andYfbBookContentIsNull() {
            addCriterion("yfb_book_content is null");
            return (Criteria) this;
        }

        public Criteria andYfbBookContentIsNotNull() {
            addCriterion("yfb_book_content is not null");
            return (Criteria) this;
        }

        public Criteria andYfbBookContentEqualTo(String value) {
            addCriterion("yfb_book_content =", value, "yfbBookContent");
            return (Criteria) this;
        }

        public Criteria andYfbBookContentNotEqualTo(String value) {
            addCriterion("yfb_book_content <>", value, "yfbBookContent");
            return (Criteria) this;
        }

        public Criteria andYfbBookContentGreaterThan(String value) {
            addCriterion("yfb_book_content >", value, "yfbBookContent");
            return (Criteria) this;
        }

        public Criteria andYfbBookContentGreaterThanOrEqualTo(String value) {
            addCriterion("yfb_book_content >=", value, "yfbBookContent");
            return (Criteria) this;
        }

        public Criteria andYfbBookContentLessThan(String value) {
            addCriterion("yfb_book_content <", value, "yfbBookContent");
            return (Criteria) this;
        }

        public Criteria andYfbBookContentLessThanOrEqualTo(String value) {
            addCriterion("yfb_book_content <=", value, "yfbBookContent");
            return (Criteria) this;
        }

        public Criteria andYfbBookContentLike(String value) {
            addCriterion("yfb_book_content like", value, "yfbBookContent");
            return (Criteria) this;
        }

        public Criteria andYfbBookContentNotLike(String value) {
            addCriterion("yfb_book_content not like", value, "yfbBookContent");
            return (Criteria) this;
        }

        public Criteria andYfbBookContentIn(List<String> values) {
            addCriterion("yfb_book_content in", values, "yfbBookContent");
            return (Criteria) this;
        }

        public Criteria andYfbBookContentNotIn(List<String> values) {
            addCriterion("yfb_book_content not in", values, "yfbBookContent");
            return (Criteria) this;
        }

        public Criteria andYfbBookContentBetween(String value1, String value2) {
            addCriterion("yfb_book_content between", value1, value2, "yfbBookContent");
            return (Criteria) this;
        }

        public Criteria andYfbBookContentNotBetween(String value1, String value2) {
            addCriterion("yfb_book_content not between", value1, value2, "yfbBookContent");
            return (Criteria) this;
        }

        public Criteria andYfbBookCreatetimeIsNull() {
            addCriterion("yfb_book_createtime is null");
            return (Criteria) this;
        }

        public Criteria andYfbBookCreatetimeIsNotNull() {
            addCriterion("yfb_book_createtime is not null");
            return (Criteria) this;
        }

        public Criteria andYfbBookCreatetimeEqualTo(String value) {
            addCriterion("yfb_book_createtime =", value, "yfbBookCreatetime");
            return (Criteria) this;
        }

        public Criteria andYfbBookCreatetimeNotEqualTo(String value) {
            addCriterion("yfb_book_createtime <>", value, "yfbBookCreatetime");
            return (Criteria) this;
        }

        public Criteria andYfbBookCreatetimeGreaterThan(String value) {
            addCriterion("yfb_book_createtime >", value, "yfbBookCreatetime");
            return (Criteria) this;
        }

        public Criteria andYfbBookCreatetimeGreaterThanOrEqualTo(String value) {
            addCriterion("yfb_book_createtime >=", value, "yfbBookCreatetime");
            return (Criteria) this;
        }

        public Criteria andYfbBookCreatetimeLessThan(String value) {
            addCriterion("yfb_book_createtime <", value, "yfbBookCreatetime");
            return (Criteria) this;
        }

        public Criteria andYfbBookCreatetimeLessThanOrEqualTo(String value) {
            addCriterion("yfb_book_createtime <=", value, "yfbBookCreatetime");
            return (Criteria) this;
        }

        public Criteria andYfbBookCreatetimeLike(String value) {
            addCriterion("yfb_book_createtime like", value, "yfbBookCreatetime");
            return (Criteria) this;
        }

        public Criteria andYfbBookCreatetimeNotLike(String value) {
            addCriterion("yfb_book_createtime not like", value, "yfbBookCreatetime");
            return (Criteria) this;
        }

        public Criteria andYfbBookCreatetimeIn(List<String> values) {
            addCriterion("yfb_book_createtime in", values, "yfbBookCreatetime");
            return (Criteria) this;
        }

        public Criteria andYfbBookCreatetimeNotIn(List<String> values) {
            addCriterion("yfb_book_createtime not in", values, "yfbBookCreatetime");
            return (Criteria) this;
        }

        public Criteria andYfbBookCreatetimeBetween(String value1, String value2) {
            addCriterion("yfb_book_createtime between", value1, value2, "yfbBookCreatetime");
            return (Criteria) this;
        }

        public Criteria andYfbBookCreatetimeNotBetween(String value1, String value2) {
            addCriterion("yfb_book_createtime not between", value1, value2, "yfbBookCreatetime");
            return (Criteria) this;
        }

        public Criteria andYfbBookVersionIsNull() {
            addCriterion("yfb_book_version is null");
            return (Criteria) this;
        }

        public Criteria andYfbBookVersionIsNotNull() {
            addCriterion("yfb_book_version is not null");
            return (Criteria) this;
        }

        public Criteria andYfbBookVersionEqualTo(String value) {
            addCriterion("yfb_book_version =", value, "yfbBookVersion");
            return (Criteria) this;
        }

        public Criteria andYfbBookVersionNotEqualTo(String value) {
            addCriterion("yfb_book_version <>", value, "yfbBookVersion");
            return (Criteria) this;
        }

        public Criteria andYfbBookVersionGreaterThan(String value) {
            addCriterion("yfb_book_version >", value, "yfbBookVersion");
            return (Criteria) this;
        }

        public Criteria andYfbBookVersionGreaterThanOrEqualTo(String value) {
            addCriterion("yfb_book_version >=", value, "yfbBookVersion");
            return (Criteria) this;
        }

        public Criteria andYfbBookVersionLessThan(String value) {
            addCriterion("yfb_book_version <", value, "yfbBookVersion");
            return (Criteria) this;
        }

        public Criteria andYfbBookVersionLessThanOrEqualTo(String value) {
            addCriterion("yfb_book_version <=", value, "yfbBookVersion");
            return (Criteria) this;
        }

        public Criteria andYfbBookVersionLike(String value) {
            addCriterion("yfb_book_version like", value, "yfbBookVersion");
            return (Criteria) this;
        }

        public Criteria andYfbBookVersionNotLike(String value) {
            addCriterion("yfb_book_version not like", value, "yfbBookVersion");
            return (Criteria) this;
        }

        public Criteria andYfbBookVersionIn(List<String> values) {
            addCriterion("yfb_book_version in", values, "yfbBookVersion");
            return (Criteria) this;
        }

        public Criteria andYfbBookVersionNotIn(List<String> values) {
            addCriterion("yfb_book_version not in", values, "yfbBookVersion");
            return (Criteria) this;
        }

        public Criteria andYfbBookVersionBetween(String value1, String value2) {
            addCriterion("yfb_book_version between", value1, value2, "yfbBookVersion");
            return (Criteria) this;
        }

        public Criteria andYfbBookVersionNotBetween(String value1, String value2) {
            addCriterion("yfb_book_version not between", value1, value2, "yfbBookVersion");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}